package com.wql.controller;

import com.aaa.vo.Result;
import com.wql.service.OOrderService;
import com.wql.vo.FormData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author wql
 * @version 1.0
 * @date 2023/3/4 11:09
 */
@RestController
@RequestMapping("/business/order")
public class OrderController {

    @Autowired
    private OOrderService oOrderService;

    @PostMapping("/selectAll")
    public Result queryAll( Integer currentPage ,  Integer pageSize, @RequestBody FormData formData){
        System.out.println("formData = " + formData);
        return  oOrderService.queryAll(currentPage,pageSize,formData);
    }

    @PostMapping("/updateSend")
    public Result updateSend( String code){
        return oOrderService.updateSend(code);
    }
}
